<template>
    <section class="form">
        <el-form ref="form" :model="item" label-width="80px">
            <el-form-item label="名称">
                <el-input v-model="item.name" placeholder="请输入名称" clearable />
            </el-form-item>
            <el-form-item label="资源">
                <el-input v-model="item.picture" placeholder="请上传资源" clearable />
            </el-form-item>
            <el-form-item label="评分">
                <el-input v-model="item.rate" placeholder="请选择评分" clearable />
            </el-form-item>
            <el-form-item label="标签">
                <tagSelect v-model="item.tag_id" />
            </el-form-item>
            <el-form-item label="描述">
                <el-input type="textarea" :rows="4" v-model="item.remark" placeholder="请输入描述" clearable />
            </el-form-item>
        </el-form>
    </section>
</template>

<script>
import tagSelect from '@/views/common/tagSelect.vue'
export default {
    components: {
        tagSelect
    },
    props: {
        item: {
            type: Object,
            default: {}
        }
    },
}
</script>

<style lang="scss" scoped>
.form {}
</style>